package org.dataframework.security.core.context;

/**
 * @Author: LiuCf
 * @Email: 1316640406@qq.com
 * @Date: 2021/7/3 14:05
 */
public class RuleContextHolder {
    private static final ThreadLocal<RuleContext> contextHolder = new ThreadLocal<>();

    public static RuleContext get() {
        return contextHolder.get();
    }

    public static void set(RuleContext context) {
        contextHolder.set(context);
    }

    public static void clear() {
        contextHolder.remove();
    }
}
